<?php
/**
 * Anti Cross Site Request Forgery token generator
 * Usage:
 * $csrf_token = new Core_Controller_Csrftoken;
 * $token = $csrf_token->main(null);
 * @author astolarski
 *
 */
class Core_Controller_Csrftoken implements Core_Controller_Mainable {
	
	public $csrf_token;
	
	public function __construct(){
		$this->csrf_token = new Core_Model_Csrftoken;
	}
	
	public function main(array $variables = null){
		return $this->csrf_token->main($variables);
	}
	
}